<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	Object user = session.getAttribute("Back_user");
	if(null != user){
		response.sendRedirect("back/index.do");
	} 
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>趣味国学后台登陆</title>
<link rel="stylesheet" href="<%=basePath%>/css/style.default.css" type="text/css" />
</head>

<body class="loginpage">
	<div class="loginbox">
    	<div class="loginboxinner">
        	
            <div class="logo">
            	<h1 class="logo">趣味<span>国学</span></h1>
				<span class="slogan">后台管理系统</span>
            </div><!--logo-->
            
            <div class="nopassword">
				<div class="loginmsg">密码不正确.</div>
            </div><!--nopassword-->
            <form id="login" onSubmit="return false;">
                <div class="username">
                	<div class="usernameinner">
                    	<input type="text" name="username" id="username" />
                    </div>
                </div>
                <div class="password">
                	<div class="passwordinner">
                    	<input type="password" name="password" id="password" />
                    </div>
                </div>
                <div class="password">
                	<div class="passwordinner">
                    	<input type="text" name="code" id="verifyCode" style="width: 170px;"/>
                    	<img id="kaptchaImage" src="<%=basePath%>/captcha-image.do" onclick="refrsh()" class="codeImg" style="width:90px;height:50px;">
                    	<!-- <img src="/captcha-image" style="width:100px;height:50px;" id="kaptchaImage" class="codeImg"/> -->
                    </div>
                </div>
                <button onclick="login()">登录</button>
                
             <!--   <div class="keep"><input type="checkbox" /> 记住密码</div>-->
            
            </form>
            
        </div><!--loginboxinner-->
    </div><!--loginbox-->

	<script type="text/javascript" src="<%=basePath %>js/plugins/jquery-1.7.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/plugins/jquery.cookie.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/plugins/jquery.uniform.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/custom/general.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/custom/index.js"></script>
</body>
</html>
